<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表格标签</title>
</head>
<body>
    <table border="1" width="50%" cellpadding="0"cellspacing="0" bgcolor="#9932cc"
    align="center">

        <tr>
            <!--<td>编号</td>-->
            <!--<td>姓名</td>-->
            <!--<td>成绩</td>-->
            <th>编号</th>
            <th>姓名</th>
            <th>成绩</th>
        </tr>
        <tr>
            <td>1</td>
            <td>小龙女</td>
            <td>100</td>
        </tr>
        <tr>
            <td>2</td>
            <td>杨过</td>
            <td>50</td>
        </tr>
    </table>
        <hr>
            <table border="1" width="50%" cellpadding="0"cellspacing="0" bgcolor="#9932cc"
            align="center">
            <caption>学生信息表</caption>
            <thead>
                <tr>
                    <!--<td>编号</td>-->
                    <!--<td>姓名</td>-->
                    <!--<td>成绩</td>-->
                    <th>编号</th>
                    <th>姓名</th>
                    <th>成绩</th>
                </tr>
            </thead>
            <tbody>
                <tr align="center" bgcolor="#dc143c">
                    <td>1</td>
                    <td>小龙女</td>
                    <td>100</td>
                </tr>
                <tr>
                    <td>2</td>
                    <td>杨过</td>
                    <td>50</td>
                </tr>
             </tbody>
            <tfoot align="center">
                <tr>
                    <td>3</td>
                    <td>张无忌</td>
                    <td>30</td>
                </tr>
            </tfoot>
    </table>
    <hr>
    <table border="1" width="50%" cellpadding="0"cellspacing="0" bgcolor="#9932cc"
           align="center">

        <tr>
            <!--<td>编号</td>-->
            <!--<td>姓名</td>-->
            <!--<td>成绩</td>-->
            <th>编号</th>
            <th>姓名</th>
            <th>成绩</th>
        </tr>
        <tr>
            <td rowspan="2">1</td>
            <td>小龙女</td>
            <td>100</td>
        </tr>
        <tr>
            <td>杨过</td>
            <td>50</td>
        </tr>
        <tr>
            <td>2</td>
            <td>张无忌</td>
            <td>50</td>
        </tr>
        <tr>
            <td colspan="2">总计</td>
            <td>50</td>
        </tr>
    </table>

</body>
</html>